package Practice9_MethodReference;

import org.junit.jupiter.api.Test;

import java.util.Arrays;
import java.util.List;

public class P1 {
    @Test
    public void test01() {
        final Car car = Car.create(Car::new);
        Runnable aNew = Car::new;
        List<Car> cars = Arrays.asList(car);
        System.out.println(cars.size());
        cars.forEach(System.out::println);
    }
}
